<?php
include '/include/db.php';
include '/include/common.php';
$activityTitle = $_REQUEST["title"];
$description = $_REQUEST["message"];
$name = $_REQUEST["name"];
$password = genRandomString(6);
$hash = str_replace("-", "", com_create_guid());
$hash = substr($hash, 1, 32);
$time = date('Y-m-d g:i:s');
if($activityTitle =='')
{
    echo "对不起，您不能查看该页面";
    return;
}
InsertActivity($hash, $name, $password, $time, $activityTitle, $description);
$activity = GetActivityByHash($hash);
include "/view/vote/options.php";